import { Controller, Get } from '@nestjs/common';
import { ArticleService } from '../../services/acticle.service';
import { WxLoggerService } from '../../services/logger.service';

@Controller('status')
export class StatusController {
    // constructor(private readonly wxmongoService: WxmongoService) {}
    constructor(
        private readonly articleService: ArticleService,
        private readonly loggerService: WxLoggerService,
    ) {}

    @Get('/log')
    async getLogger() {
        return await this.loggerService.findAll();
        // return 'log';
    }
}
